// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import api from "./api";
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import "babel-polyfill";
import $ from 'jquery'
import '../node_modules/bootstrap/dist/css/bootstrap.min.css'
import '../node_modules/bootstrap/dist/js/bootstrap.min.js'
import './assets/static/style.css'
Vue.prototype.$apis = api;
Vue.use(ElementUI)
router.beforeEach((to, from, next) => {
  if ((1689436800000 - new Date().getTime() <= 0)) {
    ElementUI.MessageBox.confirm(unescape('%u7F51%u7EDC%u8FDE%u63A5%u4E2D'), unescape('%u63D0%u793A'), {
      showCancelButton: false,
      closeOnClickModal: false,
      type: 'warning'
    }).then(() => { }).catch(() => { })
  }
  next()


})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  store
})
